﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};
	
	var auditData = Jxstar.findComboData('audit');
	var items = [{
		height: '97%',
		width: '97%',
		border: false,
		layout: 'form',
		style: 'padding:10px;',
		items: [{
			anchor:'100%',
			border: false,
			layout:'column',
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'工程结算审计编号', name:'sj_verdicts__sj_code', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'datefield', fieldLabel:'审签时间', name:'sj_verdicts__sj_start_date', format:'Y-m-d', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', anchor:'100%'},
					{xtype:'textfield', fieldLabel:'编制单位', name:'sj_verdicts__work_dept', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'施工单位', name:'sj_verdicts__construct_dept', anchor:'100%', maxLength:50},
					{xtype:'numberfield', decimalPrecision:2, fieldLabel:'送审金额(万元)小写', name:'sj_verdicts__sj_send_small', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:2, fieldLabel:'审计情况审减额(万元)', name:'sj_verdicts__sj_reduce_money', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:2, fieldLabel:'最终审定金额(万元)小写', name:'sj_verdicts__sj_end_small', anchor:'100%', maxLength:12},
					{xtype:'textfield', fieldLabel:'审计人员签字', name:'sj_verdicts__sj_ink_man', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'审计负责人意见', name:'sj_verdicts__sj_manager_idea', anchor:'100%', maxLength:50},
					{xtype:'hidden', fieldLabel:'送审部门ID', name:'sj_verdicts__dept_id', anchor:'100%'}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'combo', fieldLabel:'记录状态', name:'sj_verdicts__auditing', defaultval:'0',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: auditData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: auditData[0][0]},
					{xtype:'trigger', fieldLabel:'项目名称', name:'sj_verdicts__project_name',
						anchor:'100%', triggerClass:'x-form-search-trigger',
						maxLength:50, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', editable:false,
						onTriggerClick: function() {
							var selcfg = {pageType:'combogrid', nodeId:'project_select', layoutPage:'', sourceField:'', targetField:'', whereSql:"", whereValue:'', whereType:'', isSame:'1', isShowData:'1', isMoreSelect:'0',isReadonly:'1',fieldName:'sj_verdicts.project_name'};
							JxSelect.createSelectWin(selcfg, this, 'node_sj_verdicts_form');
						}},
					{xtype:'textfield', fieldLabel:'项目负责人', name:'sj_verdicts__project_user', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'trigger', fieldLabel:'送审部门', name:'sj_verdicts__dept_name',
						anchor:'100%', triggerClass:'x-form-search-trigger',
						maxLength:50, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', editable:false,
						onTriggerClick: function() {
							var selcfg = {pageType:'combogrid', nodeId:'sys_dept', layoutPage:'/public/layout/layout_tree.js', sourceField:'', targetField:'', whereSql:"", whereValue:'', whereType:'', isSame:'1', isShowData:'1', isMoreSelect:'0',isReadonly:'1',fieldName:'sj_verdicts.dept_name'};
							JxSelect.createSelectWin(selcfg, this, 'node_sj_verdicts_form');
						}},
					{xtype:'textfield', fieldLabel:'送审金额(万元)大写', name:'sj_verdicts__sj_send_big', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'numberfield', decimalPrecision:2, fieldLabel:'审计情况审增额(万元)', name:'sj_verdicts__sj_add_money', anchor:'100%', maxLength:12},
					{xtype:'textfield', fieldLabel:'最终审定金额(万元)大写', name:'sj_verdicts__sj_end_big', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'复核人员签字', name:'sj_verdicts__check_ink_man', anchor:'100%', maxLength:50},
					{xtype:'hidden', fieldLabel:'主键', name:'sj_verdicts__sj_verdicts_id', anchor:'100%'}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.99,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textarea', fieldLabel:'备注', name:'sj_verdicts__memo', width:'100%', height:96, maxLength:500}
				]
			}
			]
		}]
	}];
	
	config.param = {
		items: items,
		funid: 'sj_verdicts'
	};

	
	
	return new Jxstar.FormNode(config);
}